//package com.cn.config.config;
//
//import com.cn.config.Interceptor.AuthenticationFilter;
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class FilterConfig {
//    @Bean
//    public FilterRegistrationBean<AuthenticationFilter> loggingFilter() {
//        FilterRegistrationBean<AuthenticationFilter> registrationBean = new FilterRegistrationBean<>();
//        registrationBean.setFilter(new AuthenticationFilter());
//        registrationBean.addUrlPatterns("/secure/*");
//        registrationBean.setOrder(1); // 设置执行顺序
//        return registrationBean;
//    }
//}